import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: "/index"
    },
    {
      path: "/index",
      component: () => import("@/views/index/index"),
      meta: {
        title: "首页"
      }
    },
    {
      path: "/video",
      component: () => import("@/views/index/video"),
      meta: {
        title: "观看视频",
      }
    },
    {
      path: "/examination",
      component: () => import("@/views/examination/index"),
      meta: {
        title: "课程考试",
      }
    },
    {
      path: "/examinationList",
      component: () => import("@/views/examination/list"),
      meta: {
        title: "试卷列表",
      }
    },
    {
      path: "/examinationDetail",
      component: () => import("@/views/examination/detail"),
      meta: {
        title: "试卷内容",
      }
    },
    {
      path: "/answerCard",
      component: () => import("@/views/examination/answerCard"),
      meta: {
        title: "答题卡",
      }
    },
    {
      path: "/exchange",
      component: () => import("@/views/exchange/index"),
      meta: {
        title: "学习交流",
      }
    },
    {
      path: "/forumList",
      component: () => import("@/views/exchange/forumList"),
      meta: {
        title: "学习论坛",
      }
    },
    {
      path: "/forumDetail",
      component: () => import("@/views/exchange/forumDetail"),
      meta: {
        title: "帖子内容",
      }
    },
    {
      path: "/sendQuestion",
      component: () => import("@/views/qa/sendQuestion"),
      meta: {
        title: "网上答疑",
      }
    },
    {
      path: "/aq",
      component: () => import("@/views/qa/detail"),
      meta: {
        title: "网上答疑",
      }
    },
    {
      path: "/user",
      component: () => import("@/views/user/index"),
      meta: {
        title: "个人中心",
      }
    },
    {
      path: "/about",
      component: () => import("@/views/user/about"),
      meta: {
        title: "关于我们",
      }
    },
    {
      path: "/studyNotice",
      component: () => import("@/views/user/studyNotice"),
      meta: {
        title: "学习公告",
      }
    },
    {
      path: "/studyNoticeDetail",
      component: () => import("@/views/user/studyNoticeDetail"),
      meta: {
        title: "学习公告详情",
      }
    },
    {
      path: "/editorInfo",
      component: () => import("@/views/user/editorInfo"),
      meta: {
        title: "修改资料",
      }
    },
    {
      path: "/refresh",
      component: () => import("@/views/refresh"),
      meta: {
        title: "空白页",
      }
    },
  ]
})
